
function deleteCategory(ids) {
	if(confirm('确定要删除板块吗？')) {
		$.ajax({
			url:'https://www.maksdu.com/app/category/delete',
			data: {
				id:ids
			},
			method:'post',
			success:function(data) {
				if(data) {
					$("#mytable").bootstrapTable('refresh');
				}
			}
		});
	}
}

function addNewCategory() {
	$.ajax({
		url:'https://www.maksdu.com/app/category/create',
		method: 'post',
		data : {
			categoryName: $("input[name='name']").val(),
		},
		success:function(data) {
			if(data) 
				 $("#mytable").bootstrapTable('refresh');
		}
	});
}

